package com.java.onlineshop.impl;

import com.java.onlineshop.dao.ICategoryDao;
import com.java.onlineshop.pojo.Category;
import com.java.onlineshop.util.BasicDao;

/**
 * @program: onlineshop
 * @description: ICategoryDao实现类
 * @author: ShuangChenYue
 * @create: 2021-06-05 14:21
 **/
public class CategoryDaoImpl implements ICategoryDao
{

    @Override
    public Category findById(int id)
    {
        return BasicDao.getObject(Category.class,"select * from category where id=?",id);
    }
}
